<template>
	<view class="content">
		<view v-html="html" class="html"></view>
	</view>
</template>

<script>
	var that
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	export default {
		computed: {
			...mapGetters(['userInfo', 'api']),
		},
		data() {
			return {
				html:''
			};
		},
		components: {},
		onLoad(e) {
			this.getPageContent(e.type)
		},
		methods: {
			getPageContent(id){
				let params={
					id:id//类型1.用户协议 2.隐私协议 3.关于我们 4.赛事推荐规则 5.充值提示说明 6.提现提示说明 7.转盘抽奖说明
				}
				uni.$u.http.get(this.api.api_v1_getPageContent, {params:params}).then(res => {
					if(res.code==200&&res.data){
						this.html=res.data.content
						uni.setNavigationBarTitle({
							title:res.data.title
						});
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content{
		padding: 5px 10px;box-sizing: border-box;
		.html{
			width: 100%;background-color: #242448;color: #fff;padding: 10px;box-sizing: border-box;
			word-break: break-all;
		}
	}
	
</style>
